package com.dragon.pear.modules.trade.web.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.beans.factory.annotation.Autowired;
import com.dragon.common.spring.business.base.BaseCrudController;
import com.dragon.pear.modules.trade.domain.entity.TradeGoodsCategoryEntity;
import com.dragon.pear.modules.trade.web.model.params.create.TradeGoodsCategoryCreateParam;
import com.dragon.pear.modules.trade.web.model.params.update.TradeGoodsCategoryUpdateParam;
import com.dragon.pear.modules.trade.web.model.params.search.TradeGoodsCategorySearchParam;
import com.dragon.pear.modules.trade.web.model.params.order.TradeGoodsCategoryOrderParam;
import com.dragon.pear.modules.trade.web.model.results.TradeGoodsCategoryResult;
import com.dragon.pear.modules.trade.dao.repository.TradeGoodsCategoryRepository;
import com.dragon.pear.modules.trade.service.assistants.converters.TradeGoodsCategoryConverter;
import com.dragon.pear.modules.trade.service.def.TradeGoodsCategoryService;
import com.dragon.pear.modules.trade.web.api.TradeGoodsCategoryApi;

/**
 * @author Chris Chan
 * Create on 2025-09-30 22:06
 * Use for: 商品分类 接口实现
 * Explain:
 * 
 */
@RestController
@RequestMapping("trade/goods/category")
public class TradeGoodsCategoryController implements TradeGoodsCategoryApi, BaseCrudController<
        TradeGoodsCategoryEntity,
        TradeGoodsCategoryCreateParam,
        TradeGoodsCategoryUpdateParam,
        TradeGoodsCategorySearchParam,
        TradeGoodsCategoryOrderParam,
        TradeGoodsCategoryResult,
        TradeGoodsCategoryRepository,
        TradeGoodsCategoryConverter,
        TradeGoodsCategoryService
        > {

    @Autowired
    TradeGoodsCategoryService tradeGoodsCategoryService;

    @Override
    public TradeGoodsCategoryService getService() {
        return tradeGoodsCategoryService;
    }
}